package com.heima.common.constants;

public class ScheduleConstants {

    // 任务状态枚举
    public enum TaskStatus {
        SCHEDULED(0, "Scheduled"),
        EXECUTED(1, "Executed"),
        CANCELLED(2, "Cancelled");

        private final int code;
        private final String description;

        TaskStatus(int code, String description) {
            this.code = code;
            this.description = description;
        }

        public int getCode() {
            return code;
        }

        public String getDescription() {
            return description;
        }
    }

    // 字符串常量
    public static final String FUTURE = "future_"; // 未来数据key前缀
    public static final String TOPIC = "topic_";   // 当前数据key前缀
}
